package com.example.p2;

/**
 * @author Lenovo
 */
public class RunoobTest {
    private int a;
    // 私有成员变量a
    public String b = "Hello";
    // 公共成员变量b

    public static void main(String[] args) {
        RunoobTest obj = new RunoobTest();
        // 创建对象

        obj.a = 10;
        //访问成员变量a,并设置其值为“World"
        System.out.println("a = "+ obj.a);

        obj.b = "World";
        // 访问成员变量b,并设置其值为“World"
        System.out.println("b = "+ obj.b);
    }
}
